package com.zhuiyun.project.api.system.rolemenu.mapper;

import com.zhuiyun.project.api.system.rolemenu.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {
    
    /**
    * @Author hbx
    * @Description 批量新增角色菜单信息
    * @Date 2023/6/19 14:31
    * @param list
    */
    int batchRoleMenu(List<SysRoleMenu> list);

    /**
    * @Author hbx
    * @Description 通过角色ID删除角色和菜单关联
    * @Date 2023/6/19 15:24
    * @param roleId
    */
    int deleteRoleMenuByRoleId(Long roleId);


    /**
    * @Author hbx
    * @Description 批量删除角色菜单关联信息
    * @Date 2023/6/22 10:22
    * @param ids
    */
    public int deleteRoleMenu(Long[] ids);
}
